//
//  DestinationCollectionViewCell.m
//  ProjectForA
//
//  Created by apple on 14/11/19.
//  Copyright (c) 2014年 hmengwei. All rights reserved.
//

#import "DestinationCollectionViewCell.h"
#import "DestinationModel.h"
@implementation DestinationCollectionViewCell
- (void)dealloc
{
    [_aImage release];
    [_aLabel release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {

        self.aImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        [_aImage setBackgroundColor:[UIColor blueColor]];
        [self.contentView addSubview:_aImage];
        [_aImage release];
        
        self.aLabel = [[UILabel alloc] initWithFrame:CGRectMake(_aImage.frame.size.width / 10, _aImage.frame.size.height / 10 * 8, 100, 30)];
        UIFont *font = [UIFont boldSystemFontOfSize:15];
        [_aLabel setTextColor:[UIColor whiteColor]];
        [_aLabel setFont:font];
        [_aImage addSubview:_aLabel];
    }
    return self;
}



@end
